<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>05_相对定位</title>
    <style>
        .fu{
            background-color: rosybrown;
            position: relative;
            width: 500px;
        }
        .fu>div{
            width: 100px;
            height: 100px;
        }
        .z1{
            background-color: #ffd400;
        }
        .z2{
            background-color: #00c853;
            position: absolute;
            left: 200px;
            top: 50px;

        }
        .z3{
            background-color: #00a1d6;
        }
    </style>
</head>
<body>
<div class="fu">
    <div class="z1"></div>
    <div class="z2"></div>
    <div class="z3"></div>

</div>

</body>
</html>